package com.feri.findlife.controller;

import com.feri.findlife.pojo.Disabuse;
import com.feri.findlife.service.intf.DisabuseService;
import com.feri.findlife.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: FindLife
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2020-12-21 15:11
 */
//@Controller
@RestController
@RequestMapping("/api/disabuse/")
public class DisabuseController {
    @Autowired
    private DisabuseService service;
    //ThreadLocal tl;
    //新增回复
    @PostMapping("save.do")
    public R save(@RequestBody Disabuse disabuse){
        return service.save(disabuse);
    }
    //查询回复列表
    @GetMapping("all.do")
    public R all(int wid){
        return service.all(wid);
    }


}
